<?php
//发送验证码
Route::post('sms', 'comms/Common/sendSms')->name('sms.send');

//用户端
Route::group('user', function () {
    //登录 注册
    Route::post('login_or_register', 'comms/Common/loginOrRegister')->name('user.login_or_register');
    //搜索好友
    Route::post('friend/find','user/User/findByPhoneNum')->name('user.friend.find');
    //修改me_id
    Route::post('me_id/update','user/User/updateMeId')->name('user.me_id.update');
    //评价标签list
    Route::post('tag_list','user/User/tagList')->name('user.tag_list');
    //对好友标签评价
    Route::post('tag/comment','user/User/doTagComment')->name('user.tag.comment');
    //下拉关系列表
    Route::post('relation_list','user/User/relationList')->name('user.relation_list');
    //关系设置
    Route::post('relation/set','user/User/setRelation')->name('user.relation.set');
    //获取设置的亲属关系
    Route::post('relation/get','user/User/getRelativeRelation')->name('user.relation.get');
    //创建今日计划
    Route::post('plan/create','user/User/createPlan')->name('user.plan.create');
    Route::post('purpose/create','user/User/createPurpose')->name('user.purpose.create');
    //备忘录
    Route::post('memo','user/User/memo')->name('user.memo');

    //展示银行卡列表
    Route::post('user_bank/index','user/UserBank/index')->name('user.user_bank.index');
    //银行卡下拉列表
    Route::post('banktype/list','user/UserBank/bankList')->name('user.banktype.list');
    //添加银行卡
    Route::post('user_bank/add','user/UserBank/add')->name('user.user_bank.add');
    //删除
    Route::post('user_bank/delete','user/UserBank/delete')->name('user.user_bank.delete');

    //添加金融产品
    Route::post('finance/add','user/Finance/add')->name('user.finance.add');
    //展示金融产品列表
    Route::post('finance/index','user/Finance/index')->name('user.finance.index');
    //金融产品详情
    Route::post('finance/detail','user/Finance/detail')->name('user.finance.detail');
    //金融产品删除
    Route::post('finance/delete','user/Finance/delete')->name('user.finance.delete');
    //添加房产
    Route::post('house/add','user/House/add')->name('user.house.add');
    //房屋性质下拉列表
    Route::post('house_nature/list','user/House/natureList')->name('user.house_nature.list');
    //展示房产列表
    Route::post('house/index','user/House/index')->name('user.house.index');
    //金融产品详情
    Route::post('house/detail','user/House/detail')->name('user.finance.detail');
    //金融产品删除
    Route::post('house/delete','user/House/delete')->name('user.finance.delete');
});

//云信
Route::group('netease', function () {
    //创建用户
    Route::post('save', 'user/NetEase/save')->name('netease.save');
    Route::post('user/block', 'user/NetEase/blockUser')->name('netease.user.block');
    Route::post('userinfo', 'user/NetEase/getUinfos')->name('netease.userinfo');
    Route::post('userinfo/update', 'user/NetEase/updateUinfo')->name('netease.userinfo.update');
    //添加好友
    Route::post('friend/add', 'user/NetEase/addFriend')->name('netease.friend.add');
    //好友列表
    Route::post('friend/list', 'user/NetEase/friendList')->name('netease.friend.list');
});
?>